package com.dcd.controller;

import com.dcd.pojo.Video_type;
import com.dcd.service.Video_typeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/Video_typeController")
@CrossOrigin
@RestController
public class Video_typeController {

    @Autowired
    private Video_typeService video_typeService;

    /**
     * 查询全部视频类型
     *
     * @return 返回所有视频类型
     */
    @RequestMapping("/select_All_Video_type")
    public List<Video_type> select_All_Video_type(){
        return video_typeService.select_All_Video_type();
    }

}
